<#include "/WEB-INF/default/fragment/header.ftl">
<body>

<#include "/WEB-INF/default/fragment/nav.ftl">

<div class="container">
  <div class="tms-logo"><img class="center-block" src="${request.contextPath}/assets/images/logo.png" alt=""></div>
</div>

<div class="container">
<form class="form-horizontal" action="${request.contextPath}/project-post.action?teamId=${team.id}" method="post">

  <legend class="clearfix">
    <div class="pull-left"><h4>给${team.name}添加项目</h4></div>
    <div class="pull-right">
      <a href="${request.contextPath}/team-${team.id}.action" class="btn btn-default">团队首页</a>
      <button type="submit" class="btn btn-success">保存</button>
    </div>
  </legend>
  <fieldset>

    <div class="form-group">
      <label class="col-sm-2 control-label">项目名称</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" name="project.title" value="<#if project?exists && project.title?exists>${project.title}</#if>">
        <p class="help-block">项目的名称，可以设置成课程阶段名称，如：javase</p>
        <#if fieldErrors?exists && fieldErrors['project.title']?exists>
        <p class="help-block"><span class="text-danger">${fieldErrors['project.title']}</span></p>
        </#if>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-2 control-label">项目描述</label>
      <div class="col-sm-10">
        <input type="text" class="form-control" name="project.desc" value="<#if project?exists && project.desc?exists>${project.desc}</#if>">
        <p class="help-block">项目的描述，如：javase 是java的基础课程，同事会补充计算机专业的基础课程，计算机组成原理等</p>
        <#if fieldErrors?exists && fieldErrors['project.desc']?exists>
        <p class="help-block"><span class="text-danger">${fieldErrors['project.desc']}</span></p>
        </#if>
      </div>
    </div>
    
  </fieldset>
</form>
</div>

</body>
<#include "/WEB-INF/default/fragment/footer.ftl">
